<?php echo View::make('admin.common.header'); ?>

<div id="header">
    <?php echo View::make('admin.common.left')->with('is_dashboard', true);?>
    <div class="fr1">
        <!-- article manage begin -->
        <div class="main-content">

	<div class="box-positon">
		<div class="rpos">当前位置: 内容管理 - 添加/编辑新闻</div>
		<form class="ropt" action="/admin/news/index">
			<input type="submit" value="返回列表" class="return-button">
		</form>
		<div class="clear"></div>
	</div>
	
        <div class="toast" id="toast">
                <!--{$msg}-->
        </div>
	
	<div class="body-box">
		<form method="post" action="/admin/news/manage" id="jvForm">
			<table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0">
				<tr>
					<td width="10%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>新闻标题:</td>
					<td colspan="3" width="100%" class="pn-fcontent">
						<input type="text" maxlength="100" name="title" id="name" class="required" style="width:350px;" value="<?php echo $new['title'];?>" />
					</td>
				</tr>
				<!--
				<tr>
					<td width="10%" class="pn-flabel pn-flabel-h">新闻短描述:</td>
					<td colspan="3" width="90%" class="pn-fcontent">
						<textarea cols="70" rows="3" name="memo" id="memo" maxlength="255"></textarea>
					</td>
				</tr>
				-->
				<tr>
					<td width="10%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>新闻内容:</td>
					<td colspan="3" width="90%" class="pn-fcontent">
						<textarea name="content" id="a-content"><?php echo $new['content'];?></textarea>
					</td>
				</tr>
				<tr>
					<td width="10%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>新闻类型：</td>
					<td colspan="3" width="90%" class="pn-fcontent">
						<label><input type="radio" value="1" name="type" <?php if($new['type'] == '1'): ?>checked="checked"<?php endif;?>/>点播</label> 
						<label><input type="radio" value="2" name="type" <?php if($new['type'] == '2'): ?>checked="checked"<?php endif;?>//>直播</label> 
					</td>
				</tr>
				<tr>
					<td width="10%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>新闻排序权重:</td>
					<td colspan="3" width="100%" class="pn-fcontent">
						<input type="text" maxlength="100" name="sort_order" id="sort_order" class="required" style="width:30px;" value="<?php echo $new['sort_order'];?>" />
					</td>
				</tr>
			</table>
		
			<table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0">
				<tr>
					<td colspan="4" class="pn-fbutton">
					<span class="error" style="padding-left:100px;" id="error">
						<!--{$error}-->
					</span>
					</td>
				</tr>
				<input type="hidden" name="id" value="<?php echo $new["id"];?>"/>
				<tr>
					<td colspan="4" class="pn-fbutton">
					<input type="hidden" name="do" value="save">
					<input type="submit" value="提交" class="submit" class="submit" id="submit"/> &nbsp; 
					<input type="reset" value="重置" class="reset" class="reset"/>
					</td>
				</tr>
			</table>
		</form>
            </div>
	
        </div>

<script src="/thirdparty/ckeditor/ckeditor.js" type="text/javascript"></script>
<script type="text/javascript">
	var ckeditor = CKEDITOR.replace("content");
	CKEDITOR.editorConfig = function( config ) {
   		//config.filebrowserImageUploadUrl = './upload.php?type=img';
  	 	//config.filebrowserFlashUploadUrl = './upload.php?type=flash';
	};
	window.ckeditor = ckeditor;
</script>
        <!-- news manage end -->
    </div>    
</div>

<?php echo View::make('admin.common.footer'); ?>
